package cn.edu.scau.cmi.ZengLinghong.chapter05;

class Sum {
	int x,y,z;
	static int getContinueSum(int start, int end) {
		int sum=0;
		for(int i=start; i<=end; i++)
			sum+=i;
		return sum;
	}
}

public class Example5_8 {

	public static void main(String[] args) {
		int result=Sum.getContinueSum(0,100);
		System.out.println(result);
	}
}
